package com.fand.department.service;

import org.springframework.cache.annotation.CacheEvict;

import com.fand.common.service.CommonService;
import com.fand.department.dao.DepartmentDao;

/**
 * 部门服务
 * 
 * @author yaoHT
 */
public class DefaultDepartmentService implements DepartmentService {
	private CommonService commonService;
	
	private DepartmentDao departmentDao;
	
	@Override
	public CommonService getCommonService() {
		return this.commonService;
	}
	
	@Override
	@CacheEvict(value = DepartmentService.CACHE_NAME, allEntries = true)
	public void reload() {
	}
	
	public void setCommonService(final CommonService commonService) {
		this.commonService = commonService;
	}
	
	public void setDepartmentDao(final DepartmentDao departmentDao) {
		this.departmentDao = departmentDao;
	}
}